<?

$CLFetchers->fetchUsrHdr($Db,
                         $groupId,
                         $srcDbHdr,
                         $srcDbPos,
                         $srcDbDept,
                         $nHdr,
                         $resHdr);

$CLFetchers->fetchUsrDtl($Db,
                         $groupId,
                         $srcDbDtl,
                         $nDtl,
                         $resDtl);

?>

<html>
<title> GROUP </title>

<link rel="stylesheet" type="text/css" href="/myMenu.css">

<script LANGUAGE="javascript" SRC="/ecs/tocmenu_Y2/javascript/misc.js"></script>
<script LANGUAGE="javascript" SRC="/ecs/tocmenu_Y2/javascript/ajax.js"></script>

<body>
  
  <!--------------- Header table --------------->
  <table border="1" class="dedeq">
    <tr>
    <th> POS </th> <td> <?=$resHdr["POS"][0] ?>   </td>
    
    <th> DEPT</th> <td> <?=$resHdr["DEPT"][0] ?>  </td>
    </tr>
  </table>
  
  <!--------------- Detail table --------------->
  <table border="1" class="dedeq">
    <tr>
    <th> No         </th>
    <th> LevelMn    </th>
    <th> Descp      </th>
    <th> Entry      </th>
    <th> Edit       </th>
    <th> Delete     </th>
    <th> View       </th>
    <th> Finalize   </th>
    <th> Approved   </th>
    <th> Journal    </th>
    <th> Programs   </th>
    <th> Pict       </th>
    </tr>
    <? for($iRow = 0; $iRow < $nDtl; $iRow++): ?>
    <tr>
      
      <td> <?=($iRow + 1) ?>                       </td>
      <td> <?=$resDtl["LEVELMN"][$iRow] ?>         </td>
      <td> <?=$resDtl["DESCRIPTION"][$iRow] ?>     </td>
      <td> <?=$resDtl["ENTRY_RIGHTS"][$iRow] ?>    </td>
      <td> <?=$resDtl["EDIT_RIGHTS"][$iRow] ?>     </td>
      <td> <?=$resDtl["DELETE_RIGHTS"][$iRow] ?>   </td>
      <td> <?=$resDtl["VIEW_RIGHTS"][$iRow] ?>     </td>
      <td> <?=$resDtl["FINALIZE_RIGHTS"][$iRow] ?> </td>
      <td> <?=$resDtl["APPROVED_RIGHTS"][$iRow] ?> </td>
      <td> <?=$resDtl["JOURNAL_RIGHTS"][$iRow] ?>  </td>
      <td> <?=$resDtl["PROGRAMS"][$iRow] ?>        </td>
      <td> <?=$resDtl["PICT"][$iRow] ?>            </td>
      
    </tr>
    <? endfor; ?>
    
  </table>
</body>
</html>